package com.example.jf.jfapp.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jf on 2017/7/28.
 */

public class DongTaiSquareResponse  {

    private List<ResultBean> result;

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean implements Parcelable {
        /**
         * author : {"headProtrait":"http://img2.100bt.com/upload/ttq/20131103/1383470553132_middle.jpg","userId":"59780f1d128fe10056e4ecf3","userName":"lisen"}
         * commentsSize : 0
         * imageUrls : ["http://ac-EkMW81DI.clouddn.com/pLx3LlYH9qrFyQf1gaER2E3owkVJny6ETNzj9FXi.jpg","http://ac-EkMW81DI.clouddn.com/XA2OWwG2z7o1KVlHaeuFfUKFFT3mTWWvkE4tUA5n.jpg","http://ac-EkMW81DI.clouddn.com/18I2Pc6u1yujF3tncT4AtpPQFHmwPKXPg5jMCbCR.jpg","http://ac-EkMW81DI.clouddn.com/VUBXaGAFCComYq3BUxTBsW2NoUl95bUU9IO58kfy.jpg","http://ac-EkMW81DI.clouddn.com/10Qmb88NSGxAsk7cECL6A5VAvYxUs2Nah6EFOqqd.jpg","http://ac-EkMW81DI.clouddn.com/TwczaI0E6w1BnoXVmMf4c3cUUsE4B9hJKOWFdiwf.jpg"]
         * message : 刚刚给
         * praiseSize : 0
         * praiseStatus : false
         * statuId : 597b2e571b69e6006c42e02c
         * timestamp : 1501245015040
         */

        private AuthorBean author;
        private int commentsSize;
        private String message;
        private int praiseSize;
        private boolean praiseStatus;
        private String statuId;
        private long timestamp;
        private ArrayList<String> imageUrls;

        protected ResultBean(Parcel in) {
            commentsSize = in.readInt();
            message = in.readString();
            praiseSize = in.readInt();
            praiseStatus = in.readByte() != 0;
            statuId = in.readString();
            timestamp = in.readLong();
            imageUrls = in.createStringArrayList();
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public AuthorBean getAuthor() {
            return author;
        }

        public void setAuthor(AuthorBean author) {
            this.author = author;
        }

        public int getCommentsSize() {
            return commentsSize;
        }

        public void setCommentsSize(int commentsSize) {
            this.commentsSize = commentsSize;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getPraiseSize() {
            return praiseSize;
        }

        public void setPraiseSize(int praiseSize) {
            this.praiseSize = praiseSize;
        }

        public boolean isPraiseStatus() {
            return praiseStatus;
        }

        public void setPraiseStatus(boolean praiseStatus) {
            this.praiseStatus = praiseStatus;
        }

        public String getStatuId() {
            return statuId;
        }

        public void setStatuId(String statuId) {
            this.statuId = statuId;
        }

        public long getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(int timestamp) {
            this.timestamp = timestamp;
        }

        public ArrayList<String> getImageUrls() {
            return imageUrls;
        }

        public void setImageUrls(ArrayList<String> imageUrls) {
            this.imageUrls = imageUrls;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int i) {
            dest.writeInt(commentsSize);
            dest.writeString(message);
            dest.writeInt(praiseSize);

            dest.writeByte((byte) (praiseStatus ? 1 : 0));
            dest.writeString(statuId);
            dest.writeLong(timestamp);
            dest.writeStringList(imageUrls);

        }

        public static class AuthorBean {
            /**
             * headProtrait : http://img2.100bt.com/upload/ttq/20131103/1383470553132_middle.jpg
             * userId : 59780f1d128fe10056e4ecf3
             * userName : lisen
             */

            private String headProtrait;
            private String userId;
            private String userName;

            public String getHeadProtrait() {
                return headProtrait;
            }

            public void setHeadProtrait(String headProtrait) {
                this.headProtrait = headProtrait;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }
    }
}
